<li class="title">
    <span class="pa">品牌</span>
    <span class="hdx">活动详情</span>
	<span class="time">活动时间</span>
    <span class="sta">状态</span>
</li>
<foreach item="brand" name="brands">
<li id="brands_activity">
<if condition="$brand['activity']">
<a href="javascript:;" <if condition="$brand['activity']['status'] eq 100">class="task_add" mid="{$brand.mid}" fid="{$fid}" bid="{$brand.id}"<else/>class="task_update"  tid="{$brand.activity.id}"</if>>
	<span class="pa">{$brand.name|msubstr=0,7}</span>
	<span class="hdx">{$brand.activity.title|msubstr=0,7}</span>
	<span class="time" style="color: {$brand.activity.color};">
		{$brand.activity.start_time|date="m/d",###}-{$brand.activity.end_time|date="m/d",###}
	</span>
	<span class="sta" <if condition="$brand['activity']['status'] eq 4">style="color: red;"<elseif condition="$brand['activity']['status'] eq 100"/>style="color: green;"</if>>{$brand.activity.status_info}</span>
	<if condition="$brand['activity']['status'] eq 100"><a class="activity_extension" href="javascript:;" fid="{$brand.activity.id}">>></a></if>
</a>
<else/>
<a href="javascript:;" class="task_add"  mid="{$brand.mid}" fid="{$fid}" bid="{$brand.id}">
	<span class="pa">{$brand.name}</span>
	<span class="hdx">无</span>
	<span class="time">无</span>
	<span class="sta">无</span>
</a>
</if>
</li>
</foreach>
<script type="text/javascript">
$(function(){
	$("#brands_activity").activityExtension();
});
</script>